package org.gdpu.Service;

import org.gdpu.base.DAO;
import org.gdpu.model.Dormitory;
import org.gdpu.model.User;

import java.util.List;

/**
 * Created by HEWI2 on 2/17/14.
 */
public interface UserService extends DAO {


    /**
     * 根据用户名查找用户
     *
     * @param name 用户名
     * @return 用户
     */
    public User findByName(String name);

    public User findByDormitory(Dormitory dormitory);
}
